//
//  File.swift
//  
//
//  Created by reanod on 2023/3/2.
//

import Foundation

class Chat: Encodable {
    var messages: Array<MessageChat>
    var model: String
    var maxTokens: Int
    var user: String
    
    init(messages: Array<MessageChat>, model: String, maxTokens: Int, user: String) {
        self.messages = messages
        self.model = model
        self.maxTokens = maxTokens
        self.user = user
    }
    
    enum CodingKeys: String, CodingKey {
        case messages
        case model
        case maxTokens = "max_tokens"
        case user
    }
}

